<?php
    include('start.php');

    $blogs = $db->gets('select * from blog order by bid desc');
?>
<!DOCTYPE html>
<html>
    <head>
        <?php include (ADM_PATH.'/inc/header.inc.php');?>
    </head>
    <body>
        <div class="container">
            <div class="jumbotron">
                <div class="col-lg-12">
                <div class="input-group">
                    <input type="text" class="form-control" placeholder="Search for...">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="button">Go!</button>
                    </span>
                </div>
            </div>
            </div>
            <div class="col-lg-12">
                <?php foreach ($blogs as $blog):?>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="thumbnail">
                                <img src="http://www.aempire.club/public/images/image.png" alt="...">
                                <div class="caption">
                                    <h4><?php echo mb_substr(strip_tags($blog['content']),0,150);?></h4>
                                    <p><a href="#" class="btn btn-primary" role="button">复制口令 立即购买</a></p>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach;?>
            </div>
            <div class="col-md-12 text-center" style="height: 50px;background: gainsboro;">
                <p><?php echo getSettingsByKey('web_foot')?> <a href="http://www.miitbeian.gov.cn/" target="_blank">豫ICP备17015685号</a> </p>
            </div>
        </div>
    </body>
</html>

